package strategy;

import strategy.browser.BrowseStrategyEnum;

public class Main2 {

    public static void main(String[] args) {
        TreePrinter treePrinter;
        if (args.length == 1 && args[0].equalsIgnoreCase(BrowseStrategyEnum.BFS.name())) {
            treePrinter = new TreePrinter(BrowseStrategyEnum.BFS);
        } else {
            treePrinter = new TreePrinter(BrowseStrategyEnum.DFS);
        }
        treePrinter.printTree(TreeBuilder.createTree());
    }
}
